package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @author: WangYaWei
 * @description:
 * @create: 2019-08-16 17:06
 **/
public interface ArticleSearchDao extends ElasticsearchRepository<Article, String> {

    Page<Article> findByTitleLikeOrContentLike(String title, String content, Pageable pageable);
}
